/*
 * @Date: 2022-03-01 09:31:15
 * @Author: 陶子
 * @LastEditTime: 2022-08-08 10:53:54
 * @FilePath: \jk_one-stop_pc\src\views\qualityManagement\qualityTask\allColumn.js
 * @pageName: 这是--(质检记录所有的列)--页面
 */
import that from '@/main'
export let columns = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    align: 'left',
    fixed:'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
    sorter: true,
  },
  {
    title: '批次编号',
    dataIndex: 'batchCode',
    ellipsis: true,
    align: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'batchCode',
    },
  },
  {
    title: '产品名称',
    dataIndex: 'goodsName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsName',
    },
  },
  {
    title: '工序名称',
    dataIndex: 'processName',
    searchKey: 'processIds',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'processName',
    },
  },
  {
    title: '操作人',
    dataIndex: 'operatorName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'peopleIcon',
      customRender: 'operatorName',
    },
  },
  {
    title: '合格品数',
    dataIndex: 'qualifiedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'qualifiedNum' },
    sorter: true,
  },
  {
    title: '不合格品数',
    dataIndex: 'notQualifiedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'notQualifiedNum' },
    sorter: true,
  },
  {
    title: '报工单位',
    dataIndex: 'reportWorkUnitText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'reportWorkUnitText' },
  },
  {
    title: '审核状态',
    dataIndex: 'flowStatusName',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'flowStatusName' },
  },
  {
    title: '计划开始时间',
    dataIndex: 'planStartTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planStartTime' },
    sorter: true,
  },
  {
    title: '计划完成时间',
    dataIndex: 'planEndTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planEndTime' },
    sorter: true,
  },
  {
    title: '提交人',
    dataIndex: 'applicantName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      customRender: 'applicantName',
    },
  },
  {
    title: '提交时间',
    dataIndex: 'applyTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'applyTime' },
    sorter: true,
  },
  // {
  //   fixed: 'right',
  //   title: '操作',
  //   align: 'left',
  //   width: 114,
  //   dataIndex: 'actions',
  //   scopedSlots: { customRender: 'actions' },
  // },
]
export let allColumn = [
  {
    title: '工单编号',
    dataIndex: 'orderCode',
    ellipsis: true,
    align: 'left',
    fixed:'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'orderCode',
    },
    sorter: true,
  },
  {
    title: '批次编号',
    dataIndex: 'batchCode',
    ellipsis: true,
    align: 'left',
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'batchCode',
    },
  },
  {
    title: '产品编号',
    dataIndex: 'goodsCode',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'goodsCode' },
  },
  {
    title: '产品名称',
    dataIndex: 'goodsName',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsName',
    },
  },
  {
    title: '规格',
    dataIndex: 'goodsSpec',
    ellipsis: true,
    width: 120,
    scopedSlots: {
      filterDropdown: 'searchDropdown',
      filterIcon: 'searchIcon',
      customRender: 'goodsSpec',
    },
  },
  {
    title: '基本单位',
    dataIndex: 'goodsBasicUnitText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'goodsBasicUnitText' },
  },
  {
    title: '工序编号',
    dataIndex: 'processCode',
    ellipsis: true,
    width: 200,
    scopedSlots: { customRender: 'processCode' },
  },
  {
    title: '工序名称',
    dataIndex: 'processName',
    searchKey: 'processIds',
    ellipsis: true,
    width: 200,
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
      customRender: 'processName',
    },
  },
  {
    title: '操作人',
    dataIndex: 'operatorName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      filterDropdown: 'selectPeople',
      filterIcon: 'peopleIcon',
      customRender: 'operatorName',
    },
  },
  {
    title: '合格品数',
    dataIndex: 'qualifiedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'qualifiedNum' },
    sorter: true,
  },
  {
    title: '不合格品数',
    dataIndex: 'notQualifiedNum',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'notQualifiedNum' },
    sorter: true,
  },
  {
    title: '报工单位',
    dataIndex: 'reportWorkUnitText',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'reportWorkUnitText' },
  },
  {
    title: '审核状态',
    dataIndex: 'flowStatusName',
    ellipsis: true,
    width: 90,
    scopedSlots: { customRender: 'flowStatusName' },
  },
  {
    title: '计划开始时间',
    dataIndex: 'planStartTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planStartTime' },
    sorter: true,
  },
  {
    title: '计划完成时间',
    dataIndex: 'planEndTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'planEndTime' },
    sorter: true,
  },
  {
    title: '设备',
    dataIndex: 'deviceName',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'deviceName' },
  },
  {
    title: '工序要求',
    dataIndex: 'processRequire',
    ellipsis: true,
    width: 120,
    scopedSlots: { customRender: 'processRequire' },
  },
  {
    title: '提交人',
    dataIndex: 'applicantName',
    ellipsis: true,
    width: 100,
    scopedSlots: {
      customRender: 'applicantName',
    },
  },
  {
    title: '提交时间',
    dataIndex: 'applyTime',
    ellipsis: true,
    width: 180,
    scopedSlots: { customRender: 'applyTime' },
    sorter: true,
  },
]

